<template>
  <div class="page-grey">
    <div class="top">
      <span @click="$router.back()">
        <svg-icon icon-class="back" class="icon" />
      </span>
      <span class="center">分享</span>
    </div>
    <div class="share">
      <img class="avatar" src="../../../assets/avatar/a2.png" />
      <p class="username">用户：小可爱</p>
      <div class="share-btn">分享给好友</div>
      <p class="tip">
        温馨提示：<br />
        1.手机截图并保存到相册，转发给好友<br />
        2.点击【分享给好友】复制推广连接，粘贴发送给好友
      </p>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.share {
  position: absolute;
  width: 100%;
  height: calc(100% - 45px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: url("../../../assets/images/share.png") no-repeat center top;
  background-size: 100% auto;
  padding-top: 20vh;
  box-sizing: border-box;
  .avatar {
    width: 80px;
    border-radius: 50%;
  }
  .username {
    margin: 20px 0;
    color: #fff;
    font-size: 14px;
  }
  .share-btn {
    width: 180px;
    font-size: 15px;
    text-align: center;
    color: #8f6f22;
    line-height: 40px;
    font-weight: 600;
    background-color: #f8d369;
    border-radius: 8px;
  }
  .tip {
    width: 70vw;
    color: #fff;
    margin-top: 40px;
    padding: 15px;
    background-color: rgba($color: #000000, $alpha: 0.5);
  }
}
</style>
